<?php

use Biz\service\ShopMall as sShopMall;
use Doraemon\pockets\constInterface\BizActionLog;
use Doraemon\tools\ActionLog;
use Biz\service\activity\FlashSale as sFlashSale;

/**
 * @deprecated
 */
class HappeningAction extends ActionPlugin
{
    const USER_LEVEL = self::LEVEL_NOTHING;

    public function main()
    {
//        $flashSaleInfo = sShopMall::flashSaleIng(false);
        $flashSaleInfo = sFlashSale::flashSaleIng3_8();

        ActionLog::log($this->uid, [
            'uid' => $this->uid,
            'time_range' => date("Y-m-d H:i:s", $flashSaleInfo['time_down']->begin_time) . " - " . date("Y-m-d H:i:s",
                    $flashSaleInfo['time_down']->end_time),
            'from' => ''
        ], BizActionLog::BIZ_LIMITTIMEROB_HAPPENING);

        $this->setSuccess($flashSaleInfo);
    }
}